package com.csx.micrometer.discovery.service;

import com.csx.micrometer.discovery.model.HttpServiceDiscoveryVO;
import com.csx.micrometer.discovery.timer.HttpServiceDiscoveryTask;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author cuisongxu
 * @date 2022/12/5 16:17
 */
@Service
public class MicrometerServiceDiscoveryService {

    @Autowired
    private HttpServiceDiscoveryTask httpServiceDiscoveryTask;

    public List<HttpServiceDiscoveryVO> getServiceDiscoveryList() {
        return httpServiceDiscoveryTask.getServiceDiscoveryVOList();
    }
}
